import java.util.ArrayList;
import java.util.List;

public class MessageQueue {
    public ArrayList<Message> queue;
    
    public MessageQueue()
    {
        queue = new ArrayList<Message>();
    }
    
    public void push(Message message)
    {
        queue.add(message);
    }
    
    public Message get()
    {
        return queue.get(0);
    }           
    
    public void pop()
    {
        queue.remove(0);
    }
    
    public boolean isEmpty()
    {
        return queue.isEmpty();
    }
    
}
